package com.yoso.thread.call;

import cn.hutool.core.collection.CollUtil;
import com.yoso.domain.User;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author shizejin
 * @date 2022/1/29
 * @description:
 */
public class CallThread implements Callable<List<User>> {
    /**
     * Computes a result, or throws an exception if unable to do so.
     *
     * @return computed result
     * @throws Exception if unable to compute a result
     */
    @Override
    public List<User> call() throws Exception {
//        Thread.sleep(10000);
        return CollUtil.toList(new User());
    }
}
